﻿using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Noria.Web.MyMSDN;
using Noria.Web.MyMSDN.Workers;

namespace Noria.Web.Test
{
    [TestClass]
    public class ChecksumWorkerTest
    {
        [TestMethod]
        public void ChecksumGetCategoryFamilyMethod()
        {
            using (var stat = new SimpleStatistics("itellyou"))
            {
                ((ChecksumWorker)ChecksumWorker.Create(stat, new AsyncWaiter())).GetCategoryFamily(true);
            }
        }

        [TestMethod]
        public void ChecksumGetFileMethod()
        {
            using (var stat = new SimpleStatistics("itellyou"))
            {
                ((ChecksumWorker)ChecksumWorker.Create(stat, new AsyncWaiter())).GetFile(true);
            }
        }

        [TestMethod]
        public void ChecksumGetAllMethod()
        {
            using (var stat = new SimpleStatistics("itellyou"))
            {
                ChecksumWorker.Create(stat, new AsyncWaiter()).Work();
            }
        }
    }
}
